{include file="header.html"}
<body class="body-main">
<ul id="admin_sub_title">
	<li class="sub"><a href="javascript:void(0)" onClick="selectTab('config0',this)">站点互链</a></li>
</ul>
<div id="admin_right_b">
<div class="divtips">
	注，程序执行流程：获取《加入链接的网站分组》的链接地址，在《展示的网站分组》的页面上显示。
</div>
<form method="post" action="{url('admin/config/update')}" enctype="multipart/form-data">
<table width="98%" border="0" align="center" cellpadding="4" cellspacing="0" id="config0" class="tableConfig">
	<tbody>

		<tr class="tdbg item_title">
			<td width="150" align="right"><i class="typcn typcn-cog"></i> 站点互链设置</td>
			<td></td>
		</tr>
		<tr class="tdbg">
		  <td align="right" class="config_td_first">站点互链开关：</td>
		  <td class="icheck_radios"><label><input type="radio" name="con[hulian]" value="1" {if $hulian} checked{/if}>开启</label>
				<label><input type="radio" name="con[hulian]" value="0" {if !$hulian} checked{/if}>关闭</label>　<span>是否开启站点互链</span></td>
		</tr>
		<tr class="tdbg">
		  <td align="right" class="config_td_first">站点互链条数：</td>
		  <td class="tdbg"><input name="con[domain_default_num]" type="text" class="input" value="{$domain_default_num|default:'10'}" size="10"></td>
		</tr>
		<td align="right" class="config_td_first">加入链接的网站分组：</td>
			<td><input type="hidden" name="con[addlink_group]" id="addlink_group_value" value="{$addlink_group}" /><font id="addlink_group_items" color="#ff6600">{if !$addlink_group_name}未选择{else}{$addlink_group_name}{/if}</font>&nbsp;&nbsp;<a href="javascript:" class="button button_small" onclick="select_group('addlink');">点击选择</a> <span class="tips" style="color:red"><i class="typcn typcn-info"></i>选择加入链接的网站分组</span></td>
		</tr>
		<tr>
			<td align="right" class="config_td_first">展示的网站分组：</td>
			<td><input type="hidden" name="con[hulian_group]" id="hulian_group_value" value="{$hulian_group}" /><font id="hulian_group_items" color="#ff6600">{if !$hulian_group_name}未选择{else}{$hulian_group_name}{/if}</font>&nbsp;&nbsp;<a href="javascript:" class="button button_small" onclick="select_group('hulian');">点击选择</a> <span class="tips" style="color:red"><i class="typcn typcn-info"></i>选择展示链接的网站分组</span></td>
		</tr>
		<tr class="tdbg">
		  <td align="right" class="config_td_first">互链URL类型：</td>
		  <td><select name="con[flink_mod]">
			<option value="1" {if !$flink_mod || $flink_mod=='1'} selected="selected"{/if}>首页URL</option>
			<option value="2" {if $flink_mod=='2'} selected="selected"{/if}>内页URL</option>
		  </select>&nbsp;&nbsp;</td>
		</tr>
		
		<tr>
			<td width="120" align="right" class="config_td_first">单域名模式自动加www：</td>
			<td class="icheck_radios tdbg"><label><input type="radio" name="con[hulian_www]" value="1" {if $hulian_www=='1' || $hulian_www==''} checked{/if}>是</label>
			<label><input type="radio" name="con[hulian_www]" value="0" {if $hulian_www=='0'} checked{/if}>否</label>
			<span>单域名模式时，域名是否自动加www</span>
			</td>
		</tr>
		<tr class="tdbg">
		  <td align="right" class="config_td_first">互链描文本：</td>
		  <td class="tdbg"><select name="con[domain_title]" onchange="domain_title(this.value);">
					<option value="title" {if !$domain_title || $domain_title=='title'} selected="selected"{/if}>标题库</option>
					<option value="keywords" {if $domain_title=='keywords'} selected="selected"{/if}>关键词库</option>
					<option value="txt" {if $domain_title=='txt'} selected="selected"{/if}>指定txt文件</option>
				  </select>
		  <span class="tips">默认使用标题库</span>
		  </td>
		</tr>
		<tr class="tdbg">
		  <td align="right" class="config_td_first">描文本指定文件：</td>
		  <td class="tdbg"><input id="domain_title_txt" name="con[domain_title_txt]" type="text" class="input" value="{$domain_title_txt}" size="50">
		  <span class="tips">输入文件路径，如： /temp/data/domain_title.txt</span>
		  </td>
		</tr>
		<script type="text/javascript">
		function domain_title(s){
			if(s=='txt'){
				lockinput('#domain_title_txt',0);
			}else{
				lockinput('#domain_title_txt',1);
			}
		}
		{if $domain_title!='txt'} lockinput('#domain_title_txt',1); {/if}
		</script>
	</tbody>
</table>
	<table width="98%" border="0" align="center" cellpadding="3" cellspacing="1">
    <tr class="tdbg">
	  <td width="150" align="center" class="tdbg">&nbsp;</td>
      <td><button type="submit" id="dosave" class="button button_submit">保存设置</button></td>
    </tr>
	</table>
	</form>
<div class="runtime"></div>  
</div>
{include file="group_list.html"}
{include file="footer.html"}
</body>
</html>